package com.yc.c118s3plyqnzf.controller;

import com.yc.c118s3plyqnzf.entity.Type;
import com.yc.c118s3plyqnzf.service.ITypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lcx
 * @since 2022-11-28
 */
@Controller
@RequestMapping("/c118s3plyqnzf/type")
public class TypeController {

    @Resource
    ITypeService typeService;

    @GetMapping("queryAll")
    @ResponseBody
    List<Type> queryAll(){
        return typeService.queryAll();
    }
}
